package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;
import java.util.List;

/**
 * 示例服务
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/8/12
 */

@Getter
@Setter
public class MemberBaseParam {
    private String avatar;

    @NotNull(message = "组织id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织id格式错误")
    private String orgId;

    @NotNull(message = "用户id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "用户id格式错误")
    private String userId;

    private String sysId;

    private String source;

    private String name;

    private String email;

    private String mobile;

    private String gender;

    private String nickname;

    private String region;

    private String store;

    private Integer status;

    private String content;

    private String openId;

    private String appId;

    private String alipayUserId;

    private String memberNo;

    private List<String> address;

    private String employeeId;

    private Integer employeeStatus;

    private Integer memberType;

    private Date birthday;

    private String department;

    private String position;

    private String instituteName;

    private String instituteId;

    @Valid
    private List<MemberFieldParam> fieldValues;

    private Integer age;

    @Valid
    private List<MemberLabelParam> labels;
}
